/**
 * 单位工资编报
 */
import Layout from '@/layout'

const unitSalaryReport = {
  path: '/unitSalaryReport',
  component: Layout,
  redirect: '/unitSalaryReport/unitSalaryReport',
  name: 'unitSalaryReportWrapper',
  meta: {
    title: '单位工资编报',
    icon: 'el-icon-s-flag',
    roles: ['admin', 'editor'] // you can set roles in root nav
  },
  children: [
    {
      path: 'unitSalaryReport',
      component: () => import('@/views/unitSalaryReport/unitSalaryReport'),
      name: 'unitSalaryReport',
      meta: {
        title: '维护工资信息',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },{
      path: 'unitSalaryReportOne',
      component: () => import('@/views/unitSalaryReport/unitSalaryReportOne'),
      name: 'unitSalaryReportOne',
      meta: {
        title: '维护工资信息(单岗上报)',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },{
      path: 'unitSalaryReportChangchun',
      component: () => import('@/views/unitSalaryReport/unitSalaryReportChangchun'),
      name: 'unitSalaryReportChangchun',
      meta: {
        title: '维护工资信息(金额校验)',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'unitAudit',
      component: () => import('@/views/unitSalaryReport/unitAudit'),
      name: 'unitAudit',
      meta: {
        title: '单位审核',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'stopPaySalary',
      component: () => import('@/views/unitSalaryReport/stopPaySalary'),
      name: 'stopPaySalary',
      meta: {
        title: '工资停发',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    },
    {
      path: 'thirteenthMonthSalary',
      component: () => import('@/views/unitSalaryReport/thirteenthMonthSalary'),
      name: 'thirteenthMonthSalary',
      meta: {
        title: '第十三月工资',
        icon: 'el-icon-s-flag',
        roles: ['admin', 'editor']
      }
    }
  ]
}

export default unitSalaryReport
